
<%@ page import="org.gruposp2p.openid.provider.UserDNI" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'userDNI.label', default: 'UserDNI')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.show.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="userDNI.id.label" default="Id" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: userDNIInstance, field: "id")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="userDNI.addresses.label" default="Addresses" /></td>
                            
                            <td valign="top" style="text-align: left;" class="value">
                                <ul>
                                <g:each in="${userDNIInstance.addresses}" var="a">
                                    <li><g:link controller="address" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
                                </g:each>
                                </ul>
                            </td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="userDNI.accounts.label" default="Accounts" /></td>
                            
                            <td valign="top" style="text-align: left;" class="value">
                                <ul>
                                <g:each in="${userDNIInstance.accounts}" var="a">
                                    <li><g:link controller="account" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
                                </g:each>
                                </ul>
                            </td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="userDNI.photos.label" default="Photos" /></td>
                            
                            <td valign="top" style="text-align: left;" class="value">
                                <ul>
                                <g:each in="${userDNIInstance.photos}" var="p">
                                    <li><g:link controller="photo" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li>
                                </g:each>
                                </ul>
                            </td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="userDNI.username.label" default="Username" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: userDNIInstance, field: "username")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="userDNI.password.label" default="Password" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: userDNIInstance, field: "password")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="userDNI.email.label" default="Email" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: userDNIInstance, field: "email")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="userDNI.userOpenID.label" default="User Open ID" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: userDNIInstance, field: "userOpenID")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="userDNI.nif.label" default="Nif" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: userDNIInstance, field: "nif")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="userDNI.phone.label" default="Phone" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: userDNIInstance, field: "phone")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="userDNI.blogURL.label" default="Blog URL" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: userDNIInstance, field: "blogURL")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="userDNI.dateOfBird.label" default="Date Of Bird" /></td>
                            
                            <td valign="top" class="value"><g:formatDate date="${userDNIInstance?.dateOfBird}" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="userDNI.enabled.label" default="Enabled" /></td>
                            
                            <td valign="top" class="value"><g:formatBoolean boolean="${userDNIInstance?.enabled}" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="userDNI.lastUpdated.label" default="Last Updated" /></td>
                            
                            <td valign="top" class="value"><g:formatDate date="${userDNIInstance?.lastUpdated}" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="userDNI.accountNonExpired.label" default="Account Non Expired" /></td>
                            
                            <td valign="top" class="value"><g:formatBoolean boolean="${userDNIInstance?.accountNonExpired}" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="userDNI.dateCreated.label" default="Date Created" /></td>
                            
                            <td valign="top" class="value"><g:formatDate date="${userDNIInstance?.dateCreated}" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="userDNI.credentialsNonExpired.label" default="Credentials Non Expired" /></td>
                            
                            <td valign="top" class="value"><g:formatBoolean boolean="${userDNIInstance?.credentialsNonExpired}" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="userDNI.accountNonLocked.label" default="Account Non Locked" /></td>
                            
                            <td valign="top" class="value"><g:formatBoolean boolean="${userDNIInstance?.accountNonLocked}" /></td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="userDNI.authorities.label" default="Authorities" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: userDNIInstance, field: "authorities")}</td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <g:hiddenField name="id" value="${userDNIInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </g:form>
            </div>
        </div>
    </body>
</html>
